/*
 * 描述： TUEF Writ Segment Service实现类
 * 修改人： Weng.weng
 * 修改时间： May 6, 2019
 * 项目： los-core
 */
package com.aeasycredit.credit.tuef.service.impl;

import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aeasycredit.credit.tuef.dao.TuefWritDao;
import com.aeasycredit.credit.tuef.model.TuefWrit;
import com.aeasycredit.credit.tuef.service.TuefWritService;
import com.google.common.collect.Lists;

/**
 * TUEF Writ Segment Service实现类<br>
 * 
 * @author Weng.weng
 * @version [版本号, May 6, 2019]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Service
public class TuefWritServiceImpl implements TuefWritService {
    
    @Autowired
    private TuefWritDao tuefWritDao;

    @Override
    public List<TuefWrit> getListByTuefBasicId(String tuefBasicId) {
        if(StringUtils.isNotBlank(tuefBasicId)) {
            return tuefWritDao.getTuefWritList(tuefBasicId);
        }
        return Lists.newArrayList();
    }
}
